import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const mainStore = defineStore("main", {
  state: () => {
    return {
      theme: '',
    }
  },
  getters: {

  },
  actions: {
    initTheme() {
      
      // const mq = window.matchMedia('(prefers-color-scheme: dark)');
      // if (localStorage.getItem("theme") == 'dark' || mq) {
      //   document.body.classList.toggle('dark-scheme');
      // } else {
      //   document.body.classList.toggle('light-scheme');
      // }
    }
  }
})
